"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var core_1 = require("@nestjs/core");
var rxjs_1 = require("rxjs");
function createServer(module, options) {
    return rxjs_1.from(core_1.NestFactory.create(module, options));
}
exports.createServer = createServer;
function createHttpServer(module, httpServer, options) {
    return rxjs_1.from(core_1.NestFactory.create(module, httpServer, options));
}
exports.createHttpServer = createHttpServer;
function createFastifyServer(module, httpServer, options) {
    return rxjs_1.from(core_1.NestFactory.create(module, httpServer, options));
}
exports.createFastifyServer = createFastifyServer;
function createMicroservice(module, options) {
    return rxjs_1.from(core_1.NestFactory.createMicroservice(module, options));
}
exports.createMicroservice = createMicroservice;
